package com.xhh.nphm.system.service;


import com.xhh.nphm.system.domain.MakeTag;
import com.xhh.nphm.system.domain.MakeTagUser;
import com.xhh.nphm.system.domain.TagLibrary;

import java.util.List;
import java.util.Map;

public interface ITagService {
    List<TagLibrary> selectTagListJson(TagLibrary tagLibrary);

    List<Map<String,Object>> selectCommonTag();

    List<String> autoComplete();

    boolean saveTag(TagLibrary tagLibrary);

    TagLibrary selectTagByTagNo(Long tagNo);

    boolean updateTag(TagLibrary tagLibrary);

    boolean removeTag(Long tagNo);

    List<Map<String, Object>> selectTelExistTag(String telWfId, String deptId, String userId);

    List<Map<String, Object>> selectMailExistTag(String mailWfId, String deptId, String userId);

    Long selectTagByTagName(String tagName);

    boolean saveTelMakeTag(MakeTag makeTag);

    boolean saveMailMakeTag(MakeTag makeTag);

    boolean saveTelMakeTagByUser(MakeTagUser makeTagUser);

    boolean saveMailMakeTagByUser(MakeTagUser makeTagUser);

    boolean deleteWFTag(MakeTag makeTag, String deptId);

}
